//
//  MSViewModel.m
//  OrderingMerchantsSide
//
//  Created by iOS on 2018/9/20.
//  Copyright © 2018年 mls. All rights reserved.
//

#import "MSViewModel.h"

@implementation MSViewModel

+ (instancetype)allocWithZone:(struct _NSZone *)zone
{
    MSViewModel *viewModel = [super allocWithZone:zone];
    
    if (viewModel)
    {
        [viewModel ms_initialize];
    }
    
    return viewModel;
}

- (instancetype)init
{
    self = [super init];
    if (self) 
    {
        [self ms_initialize];
    }
    return self;
}

- (instancetype)initWithModel:(id)model
{
    if (self = [super init]) {}
    
    return self;
}

- (void)ms_initialize {}

- (RACSubject *)refreshUISubject
{
    if (!_refreshUISubject)
    {
        _refreshUISubject = [RACSubject subject];
    }
    
    return _refreshUISubject;
}

@end
